import {createRouter, createWebHistory} from 'vue-router'

import login from "../views/login.vue"


const routes =[
    {
        path:`/`,
        name:`login`,
        component:login
    },
    {
        path:`/Home`,
        name:`home`,
        component:()=>import('../views/home.vue'),
        children:[
            {
                path:`/questionSim`,
                name:`questionSim`,
                component:()=>import(`../views/second/questionSim.vue`)
            },
            {
                path:`/questionDetail/:id`,
                name:`questionDetail`,
                component:()=>import('../views/second/questionDetail.vue')
            }
        ]
    }
]

const router = createRouter({
    routes,
    history:createWebHistory()
})

export default router